#pragma once

#include <string>

class MqttMsg {
private:
    std::string _topic;
    std::string _payload;

public:
    MqttMsg() = default;
    MqttMsg(const std::string &t, const std::string &p) : _topic(t), _payload(p) {}

    const std::string &topic(void) const { return _topic; }
    const std::string &payload(void) const { return _payload; }
};
